package com.lovo.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lovo.project.bean.JurisdictionBean;
import com.lovo.project.bean.RoleBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface JurisdictionMapper extends BaseMapper<JurisdictionBean> {
    List<RoleBean> selectJurisdictionList(List<Integer> roleIds);

    void deleteJurisdiction(Integer roleId);

    void insertJurisdiction(@Param("roleId")Integer roleId,@Param("jurisdictionIds")List<Integer> jurisdictionIds);

}
